﻿<%@ Page Language="C#" Theme="skin_control" AutoEventWireup="true" CodeFile="ViewPlan.aspx.cs"
    Inherits="Report_ViewPlan" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>查看计划</title>
    <link href="../App_Themes/css/main_css.css" rel="stylesheet" type="text/css" />
    <link href="../App_Themes/css/display.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        /*标黑投影显示的表格线*/
        td
        {
            border-width: 1px;
            border-color: Black;
        }
        th
        {
            border-width: 1px;
            border-color: Black;
        }
        table
        {
            border-color: Black;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
        <tr>
            <td>
                <asp:Button runat="server" ID="btnExcel" Text="导出Excel" 
                    onclick="btnExcel_Click" />
            </td>
        </tr>
        <tr>
            <td>
                <asp:GridView ID="gdvQuarterPlanView" runat="server" AutoGenerateColumns="False"
                    DataKeyNames="AttachmentPath,QuarterPlanId" Visible="False" Width="100%">
                    <Columns>
                        <%--<asp:TemplateField HeaderText="选择">
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="30px" Wrap="False" />
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="30px" Wrap="False" />
                            <ItemTemplate>
                                <asp:CheckBox ID="ckbSelect" runat="server" />
                            </ItemTemplate>
                        </asp:TemplateField>--%>
                        <asp:BoundField DataField="QuarterPlanSortId" HeaderText="计划编号">
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="10%" Wrap="False" />
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="10%" Wrap="False" />
                        </asp:BoundField>
                        <asp:BoundField DataField="WorkItem" HeaderText="计划名称">
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="40%" Wrap="True" />
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="40%" Wrap="False" />
                        </asp:BoundField>
                        <%--  <asp:BoundField DataField="StartTime" HeaderText="开始时间" DataFormatString="{0:yyyy-MM-dd}"
                            HtmlEncode="False">
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="65px" Wrap="False" />
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="65px" Wrap="False" />
                        </asp:BoundField>--%>
                        <asp:BoundField DataField="CompleteTime" HeaderText="完成时间" DataFormatString="{0:yyyy-MM-dd}"
                            HtmlEncode="False">
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="20%" Wrap="False" />
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="20%" Wrap="False" />
                        </asp:BoundField>
                        <asp:BoundField DataField="MasterDepartment" HeaderText="责任部门">
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="10%" Wrap="False" />
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="10%" Wrap="False" />
                        </asp:BoundField>
                        <asp:BoundField DataField="MasterPeople" HeaderText="责任人">
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="10%" Wrap="False" />
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="10%" Wrap="False" />
                        </asp:BoundField>
                        <%--<asp:BoundField DataField="SlaveDepartment" HeaderText="配合部门">
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="60px" Wrap="False" />
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="60px" Wrap="False" />
                        </asp:BoundField>
                        <asp:BoundField DataField="SlaveDepartmentDuty" HeaderText="配合部门责任">
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="55px" Wrap="True" />
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="55px" Wrap="False" />
                        </asp:BoundField>
                        <asp:BoundField DataField="EvaluatePeople" HeaderText="评估人">
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="60px" Wrap="False" />
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="60px" Wrap="False" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Remart" HeaderText="备注">
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="110px" Wrap="True" />
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="110px" Wrap="False" />
                        </asp:BoundField>
                        <asp:BoundField DataField="AttachmentPath" HeaderText="文件保存路径" Visible="False">
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" />
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" />
                        </asp:BoundField>
                        <asp:TemplateField HeaderText="附件">
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="55px" Wrap="False" />
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="55px" Wrap="False" />
                            <ItemTemplate>
                                <asp:Button ID="btnDownLoad" runat="server" OnClick="btnQuarterDownLoad_Click" SkinID="buttonSkin"
                                    Text="下载" />
                                <asp:Label ID="lblAlert" runat="server" Visible="False"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="QuarterPlanId" HeaderText="id" Visible="False">
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="30px" Wrap="False" />
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="30px" Wrap="False" />
                        </asp:BoundField>
                        <asp:TemplateField HeaderText="查看">
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" />
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Wrap="False" />
                            <ItemTemplate>
                                <asp:Button ID="btnQuarterPlanResolve" runat="server" OnClick="btnQuarterPlanResolve_Click"
                                    SkinID="buttonSkin" Text="查看分解" Width="60px" /><asp:Label ID="lblTopic" runat="server"
                                        SkinID="labelSkin" Text="无年分解" Visible="False"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>--%>
                        <asp:BoundField DataField="QuarterPlanId" HeaderText="ID" Visible="False" />
                    </Columns>
                    <HeaderStyle BackColor="#DFDEDC" />
                </asp:GridView>
                <asp:GridView ID="gdvMonthPlanView" runat="server" AutoGenerateColumns="False" DataKeyNames="AttachmentPath,MonthPlanId"
                    Visible="False" Width="100%">
                    <Columns>
                        <%-- <asp:TemplateField HeaderText="选择">
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="30px" Wrap="False" />
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="30px" />
                            <ItemTemplate>
                                <asp:CheckBox ID="ckbSelect" runat="server" SkinID="checkboxSkin" />
                            </ItemTemplate>
                        </asp:TemplateField>--%>
                        <asp:BoundField DataField="MonthPlanSortId" HeaderText="计划编号">
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="30px" Wrap="False" />
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="30px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="WorkItem" HeaderText="计划名称">
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="400px" Wrap="True" />
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="400px" Wrap="False" />
                        </asp:BoundField>
                        <%-- <asp:BoundField DataField="Source" HeaderText="计划来源">
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="55px" Wrap="False" />
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="55px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="StartTime" HeaderText="开始时间" Visible="False" DataFormatString="{0:yyyy-MM-dd}"
                            HtmlEncode="False">
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="55px" Wrap="False" />
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="55px" Wrap="False" />
                        </asp:BoundField>--%>
                        <asp:BoundField DataField="CompleteTime" HeaderText="完成时间" DataFormatString="{0:yyyy-MM-dd}"
                            HtmlEncode="False">
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="65px" Wrap="False" />
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="65px" Wrap="False" />
                        </asp:BoundField>
                        <asp:BoundField DataField="MasterDepartment" HeaderText="责任部门">
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="70px" Wrap="False" />
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="70px" Wrap="False" />
                        </asp:BoundField>
                        <asp:BoundField DataField="MasterPeople" HeaderText="责任人">
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="65px" Wrap="False" />
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="65px" Wrap="False" />
                        </asp:BoundField>
                        <%--<asp:BoundField DataField="SlaveDepartment" HeaderText="配合部门">
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="65px" Wrap="False" />
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="65px" Wrap="False" />
                        </asp:BoundField>
                        <asp:BoundField DataField="SlaveDepartmentDuty" HeaderText="配合部门责任">
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="55px" />
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="55px" Wrap="False" />
                        </asp:BoundField>
                        <asp:BoundField DataField="EvaluatePeople" HeaderText="评估人">
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="65px" Wrap="False" />
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="65px" Wrap="False" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Remart" HeaderText="备注">
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="80px" />
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="80px" Wrap="False" />
                        </asp:BoundField>
                        <asp:BoundField DataField="AttachmentPath" HeaderText="文件保存路径" Visible="False">
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                        </asp:BoundField>
                        <asp:TemplateField HeaderText="附件下载">
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="55px" />
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="55px" />
                            <ItemTemplate>
                                <asp:Button ID="btnDownLoad" runat="server" OnClick="btnMonthDownLoad_Click" SkinID="buttonSkin"
                                    Text="下载" />
                                <asp:Label ID="lblAlert" runat="server" SkinID="labelSkin" Visible="False"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>--%>
                        <asp:BoundField DataField="MonthPlanId" HeaderText="id" Visible="False">
                            <ItemStyle HorizontalAlign="Left" Width="25px" />
                            <HeaderStyle Width="25px" Wrap="False" />
                        </asp:BoundField>
                    </Columns>
                    <HeaderStyle BackColor="#DFDEDC" />
                </asp:GridView>
                <asp:GridView ID="gdvWeekPlanView" runat="server" AutoGenerateColumns="False" DataKeyNames="AttachmentPath,WeekPlanId"
                    Visible="False" Width="100%">
                    <Columns>
                        <%--<asp:TemplateField HeaderText="选择">
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="30px" Wrap="False" />
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="30px" />
                            <ItemTemplate>
                                <asp:CheckBox ID="ckbSelect" runat="server" SkinID="checkboxSkin" />
                            </ItemTemplate>
                        </asp:TemplateField>--%>
                        <asp:BoundField DataField="WeekPlanSortId" HeaderText="计划编号">
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="30px" Wrap="False" />
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="30px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="WorkItem" HeaderText="计划名称">
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="400px" Wrap="True" />
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="400px" Wrap="False" />
                        </asp:BoundField>
                        <%--<asp:BoundField DataField="Source" HeaderText="计划来源">
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="55px" Wrap="False" />
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="55px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="StartTime" HeaderText="开始时间" Visible="False" DataFormatString="{0:yyyy-MM-dd}"
                            HtmlEncode="False">
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="55px" Wrap="False" />
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="55px" Wrap="False" />
                        </asp:BoundField>--%>
                        <asp:BoundField DataField="CompleteTime" HeaderText="完成时间" DataFormatString="{0:yyyy-MM-dd}"
                            HtmlEncode="False">
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="65px" Wrap="False" />
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="65px" Wrap="False" />
                        </asp:BoundField>
                        <asp:BoundField DataField="MasterDepartment" HeaderText="责任部门">
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="70px" Wrap="False" />
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="70px" Wrap="False" />
                        </asp:BoundField>
                        <asp:BoundField DataField="MasterPeople" HeaderText="责任人">
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="65px" Wrap="False" />
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="65px" Wrap="False" />
                        </asp:BoundField>
                        <%--<asp:BoundField DataField="SlaveDepartment" HeaderText="配合部门">
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="65px" Wrap="False" />
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="65px" Wrap="False" />
                        </asp:BoundField>
                        <asp:BoundField DataField="SlaveDepartmentDuty" HeaderText="配合部门责任">
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="55px" />
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="55px" Wrap="False" />
                        </asp:BoundField>
                        <asp:BoundField DataField="EvaluatePeople" HeaderText="评估人">
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="65px" Wrap="False" />
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="65px" Wrap="False" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Remart" HeaderText="备注">
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="80px" />
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="80px" Wrap="False" />
                        </asp:BoundField>
                        <asp:BoundField DataField="AttachmentPath" HeaderText="文件保存路径" Visible="False">
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                        </asp:BoundField>
                        <asp:TemplateField HeaderText="附件下载">
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="55px" />
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="55px" />
                            <ItemTemplate>
                                <asp:Button ID="btnDownLoad" runat="server" OnClick="btnWeekDownLoad_Click" SkinID="buttonSkin"
                                    Text="下载" />
                                <asp:Label ID="lblAlert" runat="server" SkinID="labelSkin" Visible="False"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>--%>
                        <asp:BoundField DataField="WeekPlanId" HeaderText="id" Visible="False">
                            <ItemStyle HorizontalAlign="Left" Width="25px" />
                            <HeaderStyle Width="25px" Wrap="False" />
                        </asp:BoundField>
                    </Columns>
                    <HeaderStyle BackColor="#DFDEDC" />
                </asp:GridView>
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
